import { get, post } from "@/utils/request";
// 常用关键词库
export function thesaurus(query) {
  return get("/mgxxServer/public/thesaurus", query);
}
// 文件类型
export function dictFileTypeList(query) {
  return get("/mgxxServer/policy/dictFileTypeList", query);
}
// 部门树
export function treeselect(query) {
  return get("/mgxxServer/public/treeselect", query);
}
// 管理列表
export function list(query) {
  return get("/mgxxServer/policy/list", query);
}

// 新增
export function add(query) {
  return post("/mgxxServer/policy/add", query);
}
// 编辑
export function edit(query) {
  return post("/mgxxServer/policy/edit", query);
}
// 编辑状态
export function editStatus(query) {
  return post("/mgxxServer/policy/editStatus", query);
}
// 删除
export function deleteBatch(ids) {
  return get("/mgxxServer/policy/deleteBatch", {ids});
}
// 详情
export function queryById(id) {
  return get("/mgxxServer/policy/queryById", {id});
}